import request from "./http";

//分类数据
// https://api.ecook.cn/public/getRecipeHomeData.shtml
export function getRecipeHomeData(){
    return request({
        url:"public/getRecipeHomeData.shtml",
        method:"post"
    })
}
//视频菜谱数据
// https://api.ecook.cn/public/getRecommendContentsByType.shtml
export function getRecommendContentsData(params){
    return request({
        url:"public/getRecommendContentsByType.shtml",
        method:"get",
        params
    })
}
//其他菜谱数据
// https://api.ecook.cn/public/getRecipeListByType.shtml
export function getRecipeListData(params){
    return request({
        url:"public/getRecipeListByType.shtml",
        method:"get",
        params
    })
}
//其他菜谱数据
// https://api.ecook.cn/public/getContentsBySubClassid.shtml
export function getContentsBySubClassidData(params){
    return request({
        url:"public/getContentsBySubClassid.shtml",
        method:"get",
        params
    })
}